package com.fortune.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
@TableName("news")
@Setter
@Getter
public class NewsEntity {

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private int id;
    /**
     * 状态 0：正常 1：删除
     */
    private String delFlg;
    private String newsTitle;
    private String newsContent;
    private String coverUrl;
//   1 '历史', '2故事', 3'美图', '4视频', '5搞笑'
    private String typeCode;
//    0未审核1审核完成
    private String newsStatus;
    private int showMore;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


//    @TableField(exist = false)
//    private String departmentStr;
}
